<template>
  <div>
    <nav>
      <div class="nav_title">Typography</div>
      <div class="right_search">
        <div>
          <input type="text" placeholder="search..." />
        </div>
        <a href="javascript:;">
          <span class="iconfont icon-fanggepailie"></span>
        </a>
        <a href="javascript:;">
          <span class="iconfont icon-Pathx"></span>
        </a>
        <a href="javascript:;">
          <span class="iconfont icon-user"></span>
        </a>
      </div>
    </nav>
    <div class="tubiao">
      <div class="tu-card">
        <div class="tu-card-bg">
          <div class="tu-card-top">
            <div class="tu-car-bont">
              <h4>Simple Table</h4>
              <p>Here is a subtitle for this table</p>
            </div>
          </div>
          <div class="tu-card-text">
            <h2 class="tu-card-h2">Typography</h2>
            <div>
              <div class="header-flex" v-for="item in h_list" :key="item.id">
                <div class="header-left">
                  <span>{{item.cont_title}}</span>
                </div>
                <div class="header-cont" v-html="item.cont_text"></div>
              </div>
              <div class="header-flex">
                <div class="header-left">
                  <span>Paragraph</span>
                </div>
                <div class="header-cont">
                  <p>I will be the leader of a company that ends up being worth billions of dollars, because I got the answers. I understand culture. I am the nucleus. I think that’s a responsibility that I have, to push possibilities, to show people, this is the level that things could be at.</p>
                </div>
              </div>
              <div class="header-flex">
                <div class="header-left">
                  <span>Quote</span>
                </div>
                <div class="header-cont">
                  <div class="header-quote">
                    <p>I will be the leader of a company that ends up being worth billions of dollars, because I got the answers. I understand culture. I am the nucleus. I think that’s a responsibility that I have, to push possibilities, to show people, this is the level that things could be at.</p>
                    <small>Kanye West, Musician</small>
                  </div>
                </div>
              </div>
              <div class="header-flex" v-for="item in p_list" :key="item.id">
                <div class="header-left">
                  <span>{{item.cont_title}}</span>
                </div>
                <div class="header-cont">
                  <p>I will be the leader of a company that ends up being worth billions of dollars, because I got the answers...</p>
                </div>
              </div>
              <div class="header-flex">
                <div class="header-left">
                  <span>Small Tag</span>
                </div>
                <div class="header-cont">
                    <h2>Header with small subtitle <br>
                        <small>Use 'small' tag for the headers</small>
                    </h2>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <Navfooter />
  </div>
</template>
<script>
import Navfooter from "@/components/Navfooter";
export default {
  name: "Typography",
  data() {
    return {
      h_list: [
        {
          id:1,
          cont_title: "Header 1",
          cont_text: "<h1>The Life of Material Dashboard</h1>"
        },
        {
          id:2,
          cont_title: "Header 2",
          cont_text: "<h2>The Life of Material Dashboard</h2>"
        },
        {
          id:3,
          cont_title: "Header 3",
          cont_text: "<h3>The Life of Material Dashboard</h3>"
        },
        {
          id:4,
          cont_title: "Header 4",
          cont_text: "<h4>The Life of Material Dashboard</h4>"
        },
        {
          id:5,
          cont_title: "Header 5",
          cont_text: "<h5>The Life of Material Dashboard</h5>"
        },
        {
          id:6,
          cont_title: "Header 6",
          cont_text: "<h6>The Life of Material Dashboard</h6>"
        }
      ],
      p_list: [
        {
          id:11,
          cont_title: "Muted Text"
        },
        {
          id:12,
          cont_title: "Primary Text"
        },
        {
          id:13,
          cont_title: "Info Text"
        },
        {
          id:14,
          cont_title: "Success Text"
        },
        {
          id:15,
          cont_title: "Warning Text"
        },
        {
          id:16,
          cont_title: "Danger Text"
        }
      ]
    };
  },
  components: {
    Navfooter
  }
};
</script>
<style scoped lang='less'>
nav {
  margin-bottom: 10px;
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  .nav_title {
    font-size: 18px;
  }
  .right_search {
    display: flex;
    input {
      padding: 8px 0;
      outline: none;
      border: 0;
      background-color: transparent;
      border-bottom: 1px solid #000000;
    }
    a {
      display: block;
      padding: 10px 15px;
      span {
        color: #495057;
        font-size: 20px;
      }
    }
  }
}
.tubiao {
  display: flex;
  margin-top: 50px;
  .tu-card {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    box-sizing: border-box;
    padding: 0 12px;
    .tu-card-bg {
      border-radius: 4px;
      margin: 25px 0;
      background-color: #fff;
      .tu-card-hr {
        border-color: rgba(0, 0, 0, 0.12);
        border-top: 1px solid #eee;
        margin-left: 20px;
        margin-right: 20px;
        margin-bottom: 1px;
      }
      .tu-card-action {
        margin: 0 20px 0;
        padding: 10px 0 10px;
        span {
          font-size: 12px;
          font-weight: 300px;
          color: #9e9e9e;
        }
      }
    }
    .tu-card-text {
      padding: 16px;
      .tu-card-h2 {
        margin-bottom: 24px;
        margin-top: 20px;
        font-weight: 300;
        font-size: 36px;
      }
      .header-flex {
        display: flex;
        align-items: flex-end;
        & > div {
          padding: 12px;
        }
        .header-left {
          max-width: 25%;
          span {
            bottom: 10px;
            color: #c0c1c2;
            display: block;
            font-weight: 400;
            font-size: 13px;
            line-height: 13px;
            left: 0;
            margin-left: 20px;
            width: 260px;
          }
        }
        h1 {
          font-size: 53px;
          font-weight: 300;
        }
        h2 {
          font-size: 36px;
        }
        h3 {
          font-size: 25px;
        }
        h4 {
          font-size: 18px;
        }
        h5 {
          font-size: 17px;
        }
        h6 {
          font-size: 12px;
        }
        p {
          white-space: normal;
          font-size: 14px;
          margin: 0 0 10px;
          color: rgba(0, 0, 0, 0.87);
        }
        .header-cont {
          width: 66%;
          .header-quote {
              box-sizing: border-box;
              margin: 10px 20px;
            p {
              font-style: italic;
            }
          }
        }
      }
    }
    .tu-card-top {
      max-width: calc(100% - 32px);
      position: relative;
      margin: 0 auto;
      top: -20px;
      .tu-car-bont {
        height: 80px;
        box-sizing: border-box;
        padding: 15px;
        background: linear-gradient(60deg, #66bb6a, #43a047);
        border-radius: 6px;
        h4 {
          color: #fff;
        }
        p {
          color: rgba(255, 255, 255, 0.62);
          font-size: 14px;
        }
      }
    }
  }
}
</style>
